package cn.tedu.shopol.taojin.service.impl;

import cn.tedu.shopol.taojin.model.UserAddress;
import cn.tedu.shopol.taojin.mapper.UserAddressMapper;
import cn.tedu.shopol.taojin.service.IUserAddressService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tedu.cn
 * @since 2020-12-08
 */
@Service
public class UserAddressServiceImpl extends ServiceImpl<UserAddressMapper, UserAddress> implements IUserAddressService {

    @Autowired
    UserAddressMapper addressMapper;

    @Override
    public UserAddress getAddress(Integer userId) {

        return addressMapper.getAddress(userId);
    }
}
